package cn.tedu.supermarket.entity;

import java.io.Serializable;

public class GoodsUser implements Serializable {
    private int id;
    private String name;
    private String cata;
    private int price;
    private int salesum;
    private int sum;
    private String imgurl;
    private String addtime;

    public GoodsUser() {
    }

    public GoodsUser(int id, String name, String cata, int price, int salesum, int sum, String imgurl, String addtime) {
        this.id = id;
        this.name = name;
        this.cata = cata;
        this.price = price;
        this.salesum = salesum;
        this.sum = sum;
        this.imgurl = imgurl;
        this.addtime = addtime;
    }

    public int getId() { return id; }

    public void setId(int id) { this.id = id; }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCata() {
        return cata;
    }

    public void setCata(String cata) {
        this.cata = cata;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getSalesum() {
        return salesum;
    }

    public void setSalesum(int salesum) {
        this.salesum = salesum;
    }

    public int getSum() {
        return sum;
    }

    public void setSum(int sum) {
        this.sum = sum;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public String getAddtime() {
        return addtime;
    }

    public void setAddtime(String addtime) {
        this.addtime = addtime;
    }

    @Override
    public String toString() {
        return "GoodsUser{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", cata='" + cata + '\'' +
                ", price=" + price +
                ", salesum=" + salesum +
                ", sum=" + sum +
                ", imgurl='" + imgurl + '\'' +
                ", addtime='" + addtime + '\'' +
                '}';
    }
}
